<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Page extends Model
{
    //
    protected $name = 'pages';
    protected $connection = 'mysql';
    // 设置字段信息
    protected $schema = [
        'id'          => 'int',
        'title'        => 'string',
        'active'      => 'int',
        'score'       => 'float',
        'create_time' => 'datetime',
        'update_time' => 'datetime',
    ];
}
